csd: Make link activation work reliably
authorMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 17:39:06 +0000 (13:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 22:07:21 +0000 (18:07 -0400)
The label code was just letting some button press events bubble
up, which caused misbehaviour with the window dragging code.
https://bugzilla.gnome.org/show_bug.cgi?id=695506

gtk/gtklabel.c

index 587a61f9ce32373d152ef55f9af0def2f35f5908..20d2c2e1cf012c24b4b34efa535180ea2bd0801d 100644 (file)
@@ -4597,6 +4597,8 @@ gtk_label_button_press (GtkWidget      *widget,
         {
           info->link_clicked = 1;
           gtk_widget_queue_draw (widget);
+          if (!info->selectable)
+            return TRUE;
         }
     }